let app = getApp()
var stylecss = require('../../utils/stylecss.js');
Component({
    properties: {
      item:Object
      },
      data:{ 
      
      },
    lifetimes: {
        attached: function () {
          if(this.data.item.id=='n157319006347655'){
            var css=this.data.item.css['n157319006347655'];
            var css2=this.data.item.css['n157319006347655 &search_box'];
          }else{
            var id2=this.data.item.id+' .search_box'
            var css=stylecss.css(this.data.item.id);
            var css2=stylecss.css(id2);
          }
          this.setData({
            css:css,
            css2:css2
          })
       }
      },
    methods: {
      search:function(){
        wx.navigateTo({
          url: '/yb_shopv2/native/all/index?type=search',
        })
      }
    }
});
